home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-1.iso / Files / Bus / S / S7P 3.6 Manual.sit / S7P 3.6 Manual.rsrc / TEXT_134.txt < prev    next >
Encoding:
Text File  |  1993-11-14  |  2.3 KB  |  36 lines

  1. AESend
  2.  
  3. Err:=AESend(Target;Class;ID;Message)
  4.  
  5. Sends any AppleEvent with a single direct object of type TEXT. The event is sent asynchronously and 4D doesn‚Äôt wait for a reply. If you need to wait for a reply, use SendWithReply instead. Note that the AppleEvent manager can coerce a string which represents a number into any numeric format at the receiving end.
  6.  
  7. Example:
  8. _________________________________________________________________
  9. $err:=MakeAddress("WILD";$hc) if ($err = 0)
  10.     $err:=AESend($hc;"misc";"dosc";"go to next card")
  11.     $err:=DisposeAddress($hc)
  12. end if ` this is really the same as 'DoScript'
  13. _________________________________________________________________
  14.  
  15. AESendPict
  16.  
  17. Err:=AESendPict(target;class;id;aPicture)
  18.  
  19. Sends an AppleEvent with a picture as the direct object. This is most useful for sending pictures between 4D¬Æ databases, as pictures will be sent in 4D‚Äôs internal format. If you need to send a picture to an application other than 4D, use the low level function PutPicParam. NOTE: The maximum size of all data in an Apple-Event is 64K unless you have AppleScript installed, so extremely large pictures shouldn't be sent this way.
  20.  
  21. Example:
  22. _________________________________________________________________
  23. $err:=AESendPict(remoteDB;”DEMO”;”PICT”;aPicture)
  24. if ($err#0)
  25.     Alert(‚ÄúError sending picture:‚Äù+string($err))
  26. end if
  27. _________________________________________________________________
  28.  
  29. SendWithReply
  30.  
  31. Err:=SendWithReply(Target;Class;ID;message;reply)
  32.  
  33. Sends any AppleEvent with a single direct object of type TEXT and returns the direct object of the reply as text. If an error occurs, it will return the 'errs' (error string) parameter instead. If no reply or error message was available, the reply will be an empty string. This is not intended to be used for sending custom events to other 4D (pre-3.0.3) databases, since System 7 Pack handles events asynchronously and doesn‚Äôt return a reply with any meaningful information. This can be used, however, to send one of System 7 Pack‚Äôs pre-defined events which extract information from 4D.
  34.  
  35. This command can also be used to force 4D to wait until the other application finishes processing an AppleEvent before it proceeds. Instead of using DoScript you can use SendWithReply(target ; ‚Äùmisc‚Äù;‚Äùdosc‚Äù;‚Äùsome commands‚Äù;reply) and simply ignore the reply.
  36.